package com.qikecn.utils;

import cn.geekapp.utils.StringUtils;

public class NullUtil {
	
	/**
	 * if is null return ""
	 * @param value
	 * @return
	 */
	public static String ifNull(String value){
		return StringUtils.isEmpty(value) ? "" : value;
	}
	
	/**
	 * if is null return "" else return toString()
	 * @param obj
	 * @return
	 */
	public static String ifNull(Object obj){
		return obj == null ? "" : obj.toString();
	}
}
